﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Longtop.Web.WebSite.Admin.Shared.IndexModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <%=Html.Css("~/content/admin/css/mainFrom.css") %>
</head>
<body>
    <div id="incontent">
        <div class="clear">
        </div>
        <div class="contable">
            <div class="con-ico">
                <div class="con-fl">
                    当前位置：<%=Model.Title %></div>
                <div class="con-fr">
                    <%=Html.Image("~/images/img-fountid.gif") %>
                </div>
            </div>
            <div class="clear">
            </div>
            <div class="hr">
            </div>
            <div class="imgadnfont">
                <div class="float">
                    <%=Html.Image("~/images/UserloginLog.gif")%>
                </div>
                <div style="line-height: 20px;">
                    <%=Model.Description%>
                </div>
            </div>
            <div class="clear">
            </div>
            <div style="width: 250px; float: left;" id="leftCate">
                <div id="CategoryTree" class="TreeMenu">
                    <% Html.Render(Model.MenuItems, render => items => { %>
                    <% 
                        if (items != null && items.Count > 0) { %>
                    <ul class="Opened">
                        <% foreach (var item in items) { %>
                        <li class="Opened">
                            <%=Html.Image("~/content/admin/css/s.gif", "展开/折叠")%>
                            <%=Html.ActionLink(item.Title, "index", new { }, new { target = "EditMain" })%>
                            <a href="<%=Url.Action("create") %>" target="EditMain">
                                <%=Html.Image("~/content/admin/images/new.gif","新建", new { width=15,height=15,Class="s_1" })%>
                            </a>
                            <%render(item.Children); %>
                        </li>
                        <% } %>
                    </ul>
                    <% } %>
                    <% }); %>
                </div>
            </div>
            <div id="RightCate" style="width: 480px; float: left">
                <iframe frameborder="0" style="width: 480px; height: 350px;" src="<%=Url.Action("index") %>"
                    id="EditMain" name="EditMain"></iframe>
            </div>
        </div>
    </div>
</body>
</html>
